import os, urlparse

from django.conf import settings

SOURCE = getattr(settings, 'MEDIAMANAGER_SOURCE', settings.MEDIA_ROOT)

CACHE = getattr(settings, 'MEDIAMANAGER_CACHE',
                os.path.join(settings.MEDIA_ROOT, 'cache'))

URL = getattr(settings, 'MEDIAMANAGER_URL',
              urlparse.urljoin(settings.MEDIA_URL, 'cache'))

DEFAULT_EXPIRE = getattr(settings, 'MEDIAMANAGER_DEFAULT_EXPIRE', 60*60*24*7)

DONT_CACHE = getattr(settings, 'MEDIAMANAGER_DONT_CACHE', False)

EXTERNAL_PATH = getattr(settings, 'MEDIAMANAGER_EXTERNAL_PATH', 'mediamanager_external')

#############

MEDIA_ROOT = settings.MEDIA_ROOT

